Skip to content

[bugfix][#966] Compact Stop Button Width in Plan Webview#968

Merged
were merged 1 commit intomainfrom
issue-966
Feb 18, 2026
Merged

[bugfix][#966] Compact Stop Button Width in Plan Webview#968
were merged 1 commit intomainfrom
issue-966

Conversation

@were
Copy link
Contributor

@were were commented Feb 18, 2026

[bugfix][#966] Compact Stop Button Width in Plan Webview

Summary

Fixes the visually over-wide terminal Stop button in the Plan webview by removing unintended inherited equal-width flex behavior.

Changes

CSS Fix (vscode/webview/plan/styles.css)

  • Removed global equal-width flex rules from .widget-button
  • Added scoped rule .widget-buttons .widget-button for action-row equal-width sizing
  • Added intrinsic width rules (flex: 0 0 auto; min-width: auto) to .terminal-stop-button

Documentation Updates

  • vscode/webview/plan/styles.md: Documented that .widget-button provides shared visual style only; equal-width behavior applies only in .widget-buttons context; .terminal-stop-button uses intrinsic width
  • vscode/test/playwright/test-session-append.md: Documented the hard assertion for stop-width regression check

Test Update

  • vscode/test/playwright/test-session-append.js: Added hard regression assertion comparing terminal stop button width vs action-row button width; throws error if stop button is not narrower

Verification

  • Build passes (make vscode-plugin succeeds)
  • Terminal Stop button is now content-sized (not stretched)
  • Action-row buttons in .widget-buttons remain equal-width
  • Playwright test includes deterministic regression check for stop-width behavior

closes #966

Issue 966 resolved

vscode/webview/plan/styles.css
- Remove global equal-width flex rules from .widget-button
- Add scoped rule .widget-buttons .widget-button for action-row equal-width sizing
- Add intrinsic width rules (flex: 0 0 auto; min-width: auto) to .terminal-stop-button

vscode/webview/plan/styles.md
- Document that .widget-button provides shared visual style only
- Document that equal-width behavior applies only in .widget-buttons context
- Document that .terminal-stop-button uses intrinsic width with right alignment

vscode/test/playwright/test-session-append.js
- Add hard regression assertion comparing terminal stop button width vs action-row button width
- Throws error if stop button is not narrower than action buttons

vscode/test/playwright/test-session-append.md
- Document the hard assertion for stop-width regression check

Issue 966 resolved
@were were merged commit 8027886 into main Feb 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[plan] [#966] Compact Stop Button Width in Plan Webview

1 participant

Comments